
package com.submaxim_testdb.data;

import java.io.Serializable;


/**
 *  submaxim_testDB.ServeripsId
 *  11/10/2011 17:39:29
 * 
 */
public class ServeripsId
    implements Serializable
{

    private Byte serverid;
    private String servername;
    private String ip;
    private Integer userId;
    private Byte allocated;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ServeripsId)) {
            return false;
        }
        ServeripsId other = ((ServeripsId) o);
        if (this.serverid == null) {
            if (other.serverid!= null) {
                return false;
            }
        } else {
            if (!this.serverid.equals(other.serverid)) {
                return false;
            }
        }
        if (this.servername == null) {
            if (other.servername!= null) {
                return false;
            }
        } else {
            if (!this.servername.equals(other.servername)) {
                return false;
            }
        }
        if (this.ip == null) {
            if (other.ip!= null) {
                return false;
            }
        } else {
            if (!this.ip.equals(other.ip)) {
                return false;
            }
        }
        if (this.userId == null) {
            if (other.userId!= null) {
                return false;
            }
        } else {
            if (!this.userId.equals(other.userId)) {
                return false;
            }
        }
        if (this.allocated == null) {
            if (other.allocated!= null) {
                return false;
            }
        } else {
            if (!this.allocated.equals(other.allocated)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.serverid!= null) {
            rtn = (rtn + this.serverid.hashCode());
        }
        rtn = (rtn* 37);
        if (this.servername!= null) {
            rtn = (rtn + this.servername.hashCode());
        }
        rtn = (rtn* 37);
        if (this.ip!= null) {
            rtn = (rtn + this.ip.hashCode());
        }
        rtn = (rtn* 37);
        if (this.userId!= null) {
            rtn = (rtn + this.userId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.allocated!= null) {
            rtn = (rtn + this.allocated.hashCode());
        }
        return rtn;
    }

    public Byte getServerid() {
        return serverid;
    }

    public void setServerid(Byte serverid) {
        this.serverid = serverid;
    }

    public String getServername() {
        return servername;
    }

    public void setServername(String servername) {
        this.servername = servername;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getAllocated() {
        return allocated;
    }

    public void setAllocated(Byte allocated) {
        this.allocated = allocated;
    }

}
